const express = require('express')
const router = express.Router()
//将路由处理逻辑模块化
const controller = require('../controller/user')



//用户注册模块
router.post('/register',controller.register)

//用户登录模块
router.post('/login',controller.login)

//获取用户信息模块
router.get('/userList',controller.userList)

//更新用户信息
router.post('/userUpdate',controller.userUpdate)


module.exports=router

